====== Scripts ======

I wrote my model code in [[http://www.mathworks.com/products/matlab/ | MATLAB]] because it is convenient and fast.  You are welcome to download and use the scripts as you like.  They may also work with [[https://www.gnu.org/software/octave/ | Octave]].  If you translate them to another language I'd be happy to share a link or host your files here --- just [[mailto:rik.blok@ubc.ca | get in touch]].

====== Curve fitting ======

This is the main script that repeatedly generates model data by integrating out the [[wp>differential equations]] to see how well it "fits" with empirical data.  It compares multiple fits and adjusts the [[..:parameters:start | parameters]] until it eventually finds the best fit.  
  * {{http://www.zoology.ubc.ca/~rikblok/ebolamodel/testfitode5.m | testfitode5.m}}

These fitted parameter values and their uncertainties are then used in the following scripts to interpret the model.

====== Scripts to generate graphs ======

These scripts generate the graphs on these pages:
  * {{http://www.zoology.ubc.ca/~rikblok/ebolamodel/plotr0firstderiv.m | plotr0firstderiv.m}}
  * {{http://www.zoology.ubc.ca/~rikblok/ebolamodel/plotcfrh.m | plotcfrh.m}}
  * {{http://www.zoology.ubc.ca/~rikblok/ebolamodel/plotcases.m | plotcases.m}}
  * {{http://www.zoology.ubc.ca/~rikblok/ebolamodel/plotlogcases.m | plotlogcases.m}}
  * {{http://www.zoology.ubc.ca/~rikblok/ebolamodel/ultimateimpactlatest.m | ultimateimpactlatest.m}}

====== Scripts to load empirical data ======

These scripts grab the latest [[..:data:start | empirical data]] from online sources and compile them into timeseries data my model can use:
  * {{http://www.zoology.ubc.ca/~rikblok/ebolamodel/loadMontanaflynnData.m | loadMontanaflynnData.m}}
  * {{http://www.zoology.ubc.ca/~rikblok/ebolamodel/loadWikipediaData.m | loadWikipediaData.m}}
  * {{http://www.zoology.ubc.ca/~rikblok/ebolamodel/loadCmriversData.m | loadCmriversData.m}}
  * {{http://www.zoology.ubc.ca/~rikblok/ebolamodel/loadJonathanDuganData.m | loadJonathanDuganData.m}}
